import http from "../../http/index"
import qs from "qs"

// 发送注册短信验证码
export const ApiSendSMS = (params: { phone: string }): RES<IPhoneData> => http.post('/sendSMS', qs.stringify(params))

// 手机号验证码登录(含注册)
export const ApiPhoneRegin = (params: { verifyCode: string, phone: string }): RES<IPhoneRegin> => http.post('/phoneRegin', qs.stringify(params))

// 手机绑定微信
export const ApiWechatUsersBinding = (params: { phone: string, verifyCode: string, uuid: string, nickName?: string }):RES<IGetData<string>> => http.post('/wechatUsers/binding', qs.stringify(params))